import * as yup from 'yup';

yup.setLocale({
  mixed: {
    required: '此字段是必须的',
  },
  string: {
    min: '长度最少为 ${min}',
    max: '长度最少为 ${max}',
    email: '邮箱格式错误',
  },
  number: {
    min: '长度最少为 ${min}',
  },
});
